package com.yuyu.demo.spring4.annotation.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

import com.yuyu.demo.spring4.annotation.serviece.AnService;

@Controller
public class AnController {
	@Autowired
	private AnService service;
	
	public void hello() {
		System.out.println("Controller....");
		service.hello();
	}
}
